<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		/*检测属性是否是元素的自有属性* /
		 * 
		 */
		(function(){
			var o = {x:1};
			o.hasOwnProperty("x");
			o.hasOwnProperty("y");
			o.hasOwnProperty("toString");
		})();
		
	</script>
</html>
